<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<#import "/common/page.ftl" as p>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>${this[0].getText("project_name")}</title>
<link type="text/css" href="${base}/static/css/style.css" rel="stylesheet" rev="stylesheet" />
<link rel="stylesheet" type="text/css" href="${base}/static/js/validate/css/screen.css" />


<script type="text/javascript" src="${base}/static/js/jquery.js"></script>
<script type="text/javascript" src="${base}/static/js/calendar/WdatePicker.js"></script>
<script type="text/javascript" src="${base}/static/js/validate/validate.js"></script>
<script type="text/javascript" src="${base}/static/js/validate/cmxforms.js"></script>
</head>
<body>


<form id="allform" action='${base}/declaration/save' method='post'>
<div class="main_content" id="div1" style="display:block">

<br/>
<h2>四川省危险物申报登记信息</h2>
    <table cellspacing="0" class="datalist" style="width:80%">
    	<tr>
    		<th>申请单位详细名称：</th>
    		<td colspan="3"><input type="input" id="name" name="dec.name" style="width:200px;"/></td>
    	</tr>
		<tr>
			<th>申报单位详细地址：</th>
    		<td colspan="3">
				<input type="input" id="corporationAddress" name="dec.corporationAddress" value="" style="width:200px;"/>  ____市___县（市、区____乡、镇及街（道、路）____号
			</td>
    	</tr>
    	<tr>
    		<td>
    			<select name="dec.city.id" id="cityId">
					<option value="1">选择地区</option>
						<#if allCity?exists>
							<#list allCity as city>
								<option value="${city.id}">${city.cityName}</option>
							</#list>
						</#if>
				</select>
    		</td>
    	</tr>
		<tr>
			<th width="15%">申报年度：</th>
    		<td><input type="input" id="declareYear" name="dec.declareYear" value="${dec.declareYear!}"/></td>
			<th  width="15%">开业年份：</th>
    		<td><input type="input" id="openningYear" name="dec.openningYear"/></td>
    	</tr>	   	
    	<tr>
			<th>申报单位法人代码：</th>
    		<td><input type="input" id="cooperationCode" name="dec.cooperationCode"/></td>
			<th>法人(或负责人)：</th>
    		<td><input type="input" id="cooperation" name="dec.cooperation"/></td>
    	</tr>
		<tr>
			<th>邮政编码：</th>
    		<td><input type="input" id="zipCode" name="dec.zipCode"/></td>
			<th>电话号码： </th>
    		<td><input type="input" id="phoneNumber" name="dec.phoneNumber"/></td>
    	</tr>
		<tr>
			<th>传真号码：</th>
    		<td><input type="input" id="faxNumber" name="dec.faxNumber"/></td>
			<th>行业代码：</th>
    		<td><input type="input" id="tradeCode" name="dec.tradeCode"/></td>
    	</tr>
		<tr>
			<th>填表人：</th>
    		<td><input type="input" id="createdUser" name="dec.createdUser"/></td>
			<th>单位环保负责人：</th>
    		<td><input type="input" id="environmentalPrincipal" name="dec.environmentalPrincipal"/></td>
    	</tr>
		<tr>
			<th>审核人：</th>
    		<td><input type="input" id="assessor" name="dec.assessor"/></td>
			<th>是否属于环统范围：</th>
    		<td><input type="radio" id="needStat" name="dec.needStat" value="1" checked>是<input type="radio" id="needStat" name="dec.needStat" value = "0" >否</td>
    	</tr>
    </table>
	 <input type="button" id="test1" value="下一页" />
</div>

<div class="main_content" id="div2" style="display:none">

<br/>
<h2>四川省危险物申报登记信息----单位基本信息</h2>
<!--<form id="form2" action='#' method='post'>-->
    <table cellspacing="0" class="datalist" style="width:70%">
    	<tr>
			<th width='20%'>年产值：</th>
    		<td width='60%'><input type="text" id="corporationGav" name="info.corporationGav"/> 万元</th>
    	</tr>
		<tr>
			<th>环保设施费用：</th>
    		<td><input type="text" name="info.facilitiesValue" id="facilitiesValue"/> 万元</th>
    	</tr>	   	
    	<tr>
			<th>缴纳排污费总额：</th>
    		<td><input type="text" id="sewageFees" name="info.sewageFees"/> 万元</th>
    	</tr>
		<tr>
			<th>年末职工总数：</th>
    		<td><input type="text" id="staffCount" name="info.staffCount"/> 个</th>
    	</tr>
		<tr>
			<th>专职环保人员：</th>
    		<td><input type="text" id="environmentalCount" name="info.environmentalCount"/> 个</th>
    	</tr>
		<tr>
			<th>年正常生产天数：</th>
    		<td><input type="text" id="produceDays" name="info.produceDays"/> 天</th>
    	</tr>
		<tr>
			<th>单位占地面积：</th>
    		<td><input type="text" id="floorArea" name="info.floorArea"/> 万平方米</th>
    	</tr>
		<tr>
			<th>危险废物转移的频次：</th>
    		<td><input type="text" id="transferFrequency" name="info.transferFrequency"/> 次/年</th>
    	</tr>
		<tr>
			<th colspan="2" style="text-align:center">主要产品产量及有毒有害原辅材料耗量（最多填三种）</th>
    	</tr>
		<tr style="text-align:center">
			<td colspan="2">
				<table cellspacing="0" class="datalist" style="width:100%">
					<#list mainProduceList as produce>
				        <tr>
							<td style="text-align:center">产品名称：</td>
							<td style="text-align:center"><input type="input" id="name" name="mainProduceList[${produce_index}].name" value="${produce.name}"/>  </td>
							<td style="text-align:center">单位：</td>
							<td style="text-align:center"><input type="input" id="unit" name="mainProduceList[${produce_index}].unit" value="${produce.unit}"/>  </td>
							<td style="text-align:center">年产量：</td>
							<td style="text-align:center"><input type="input" id="amount" name="mainProduceList[${produce_index}].amount" value="${produce.amount}"/>  </td>
				    	</tr>
				    	<input type="hidden" name="mainProduceList[${produce_index}].type" value="${produce.type}" />
				    </#list>
				    
				    <#list mainConsumeList as consume>
				        <tr>
							<td style="text-align:center">原辅材料名称：</td>
							<td style="text-align:center"><input type="input" id="name" name="mainConsumeList[${consume_index}].name" value="${consume.name}"/>  </td>
							<td style="text-align:center">单位：</td>
							<td style="text-align:center"><input type="input" id="unit" name="mainConsumeList[${consume_index}].unit" value="${consume.unit}"/>  </td>
							<td style="text-align:center">年耗量：</td>
							<td style="text-align:center"><input type="input" id="amount" name="mainConsumeList[${consume_index}].amount" value="${consume.amount}"/>  </td>
				    	</tr>
				    	<input type="hidden" name="mainConsumeList[${consume_index}].type" value="${consume.type}" />
				    </#list>
				</table>
			</td>
		</tr>
		<tr>
			<th colspan="2" style="text-align:center">危险废物综合利用情况（万元）</th>
    	</tr>
		<tr style="text-align:center">
			<td colspan="2">
				<table cellspacing="0" class="datalist" style="width:100%">
			        <tr>
						<td style="text-align:center">危险废物综合利用产品产值：</td>
						<td style="text-align:center"><input type="text" id="dsGav" name="info.dsGav"/>  </td>
						<td style="text-align:center">危险废物综合利用产品利润：</td>
						<td style="text-align:center"><input type="text" id="dsProfit" name="info.dsProfit"/>  </td>
			    	</tr>
				</table>
			</td>
		</tr>
		<tr>
			<th colspan="2" style="text-align:center">危险废物产生的主要工艺</th>
    	</tr>
		<tr style="text-align:center">
			<td colspan="2">
				<table cellspacing="0" class="datalist" style="width:100%">
			        <tr>
						<td style="text-align:center"><textarea cols="75" rows="10" name="info.produceDescription" id="produceDescription"></textarea></td>
			    	</tr>
				</table>
			</td>
		</tr>
    </table>
    <input type="button" id="test2" value="上一页" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    <input type="button" id="test3" value="下一页" />
<!--</form>-->
</div>

<div class="main_content" id="div3" style="display:none">

<br/>
<h2>四川省危险物申报登记信息----具体情况调查表</h2>


	  <table cellspacing="0" class="datalist" style="width:80%">
		<tr>
			<th style="text-align:center">危险废物产生及去向情况表</th>
    	</tr>
		<tr style="text-align:left">
			<td>
				<table cellspacing="0" class="datalist" style="width:80%" id="">
					<tr>
						<th style="text-align:center">废物编号</th>
						<th style="text-align:center">废物年生产量</th>
						<th style="text-align:center">废物年排放量</th>
						<th style="text-align:center">主要有害成份</th>
						<th style="text-align:center">年综合利用量</th>
						<th style="text-align:center">本单位综合利用量</th>
						<th style="text-align:center">年处置量</th>
						<th style="text-align:center">本单位年处置量</th>
						<th style="text-align:center">处置往年贮存量</th>
						<th style="text-align:center">年贮存量</th>
						<th style="text-align:center">历年单位已贮存量</th>
						<th style="text-align:center">废物转移频次</th>						
				    </tr>
					<#list produceList as produce>
				        <tr>
							<td style="text-align:center">
								<select name="produceList[${produce_index}].grabage.id" id="grabageId">
									<option value="1">选择废物类型</option>
										<#if grabageList?exists>
											<#list grabageList as grabage>
												<option value="${grabage.id}">${grabage.sortName}</option>
											</#list>
										</#if>
								</select>
 							</td>
							<td style="text-align:center"><input style="width:30px" type="input" id="produceAmount" name="produceList[${produce_index}].produceAmount"/></td>
							<td style="text-align:center"><input style="width:30px" type="input" id="emissionAmount" name="produceList[${produce_index}].emissionAmount"/></td>
							<td style="text-align:center"><input style="width:30px" type="input" id="mainComponents" name="produceList[${produce_index}].mainComponents"/></td>
							<td style="text-align:center"><input style="width:30px" type="input" id="utilizedAmount" name="produceList[${produce_index}].utilizedAmount"/></td>
							<td style="text-align:center"><input style="width:30px" type="input" id="corporationUtilizedAmount" name="produceList[${produce_index}].corporationUtilizedAmount"/></td>
							<td style="text-align:center"><input style="width:30px" type="input" id="disposeAmount" name="produceList[${produce_index}].disposeAmount"/></td>
							<td style="text-align:center"><input style="width:30px" type="input" id="corporationDisposeAmount" name="produceList[${produce_index}].corporationDisposeAmount"/></td>
							<td style="text-align:center"><input style="width:30px" type="input" id="disposeStockPast" name="produceList[${produce_index}].disposeStockPast"/></td>
							<td style="text-align:center"><input style="width:30px" type="input" id="stockAmount" name="produceList[${produce_index}].stockAmount"/></td>
							<td style="text-align:center"><input style="width:30px" type="input" id="stockAmountYears" name="produceList[${produce_index}].stockAmountYears"/></td>
							<td style="text-align:center"><input style="width:30px" type="input" id="transferFrequency" name="produceList[${produce_index}].transferFrequency"/></td>
				    	</tr>
				    </#list>
				</table>
			</td>
		</tr>
		<tr>
			<th style="text-align:center">危险废物综合利用或处理设施情况表</th>
    	</tr>
		<tr style="text-align:left">
			<td>
				<table cellspacing="0" class="datalist" style="width:80%">
					<tr>
						<th style="text-align:center">设备编号</th>
						<th style="text-align:center">设备名称</th>
						<th style="text-align:center">固废编号</th>
						<th style="text-align:center">设备处理能力</th>
						<th style="text-align:center">设备台数</th>
						<th style="text-align:center">处理方法</th>
						<th style="text-align:center">年运行天数</th>
						<th style="text-align:center">运行状况</th>
						<th style="text-align:center">年运行费用</th>
						<th style="text-align:center">投入时间</th>
				    </tr>
					<#list facList as fac>
				        <tr>
							<td style="text-align:center"><input style="width:30px" type="input" id="facilitiesId" name="facList[${fac_index}].facilitiesId" value="${fac.facilitiesId}"/>  </td>
							<td style="text-align:center"><input style="width:30px" type="input" id="name" name="facList[${fac_index}].name" value="${fac.name}"/>  </td>
							<td style="text-align:center"><input style="width:30px" type="input" id="grabageId" name="facList[${fac_index}].grabageId" value="${fac.grabageId}"/>  </td>
							<td style="text-align:center"><input style="width:30px" type="input" id="capacity" name="facList[${fac_index}].capacity" value="${fac.capacity}"/>  </td>
							<td style="text-align:center"><input style="width:30px" type="input" id="amount" name="facList[${fac_index}].amount" value="${fac.amount}"/>  </td>
							<td style="text-align:center"><input style="width:30px" type="input" id="operateMethod" name="facList[${fac_index}].operateMethod" value="${fac.operateMethod}"/>  </td>
							<td style="text-align:center"><input style="width:30px" type="input" id="dayOfYear" name="facList[${fac_index}].dayOfYear" value="${fac.dayOfYear}"/>  </td>
							<td style="text-align:center"><input style="width:30px" type="input" id="operateStatus" name="facList[${fac_index}].operateStatus" value="${fac.operateStatus}"/>  </td>
							<td style="text-align:center"><input style="width:30px" type="input" id="charge" name="facList[${fac_index}].charge" value="${fac.charge}"/>  </td>
							<td style="text-align:center"><input style="width:30px" type="input" id="operateYears" name="facList[${fac_index}].operateYears" value="${fac.operateYears}"/>  </td>
				    	</tr>
				    </#list>
				</table>
			</td>
		</tr>
    </table>
    <input type="button" id="test4" value="上一页" />&nbsp;&nbsp;&nbsp;&nbsp;
    <input type="button" id="test5" value="下一页" />
</div>



<div class="main_content" id="div4" style="display:none">

<br/>
<h2>四川省危险物申报登记信息----申报单位承诺意见（对真实、全面申报的承诺）</h2>
<!--<form id="form4" action='#' method='post'>-->
  	<table cellspacing="0" class="datalist" style="width:60%">
    	<tr>
			<th>承诺意见</th>
    		<td><textarea cols="75" rows="20"  name="info.corporationPromise" id="corporationPromise"></textarea></th>
    	</tr>
    </table>
    <input type="button" id="test6" value="上一页" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    <input type="submit" value="保存"/>
	<input type="submit" value="提交审核"/>
<!--</form>-->
</div>
</form>
<script type="text/javascript">

$(document).ready(function(){
	  $("#test1").click(
		  function(){
			   $("#div1").toggle("slow");
			   $("#div2").toggle("slow");
		  }
	  );
	 
	 $("#test2").click(
		  function(){
			   $("#div1").toggle("slow");
			   $("#div2").toggle("slow");
		  }
      );
	  
	 $("#test3").click(
		  function(){
			   $("#div2").toggle("slow");
			   $("#div3").toggle("slow");
		  }
     );
	 
	$("#test4").click(
	  function(){
		   $("#div2").toggle("slow");
		   $("#div3").toggle("slow");
	  }
    );
	
	  $("#test5").click(
		  function(){
			   $("#div3").toggle("slow");
			   $("#div4").toggle("slow");
		  }
	  );
	  
	 $("#test6").click(
	   function(){
		   $("#div3").toggle("slow");
		   $("#div4").toggle("slow");
	   }
    );
		  
 });

</script>
</body>
</html>
